package com.unnous.common.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 公共接口访问类
 * author tangwc
 */
@RestController
public class CommonController {
    /**
     * 测试方法
     * @return
     */
    @GetMapping("/hello")
    public String getStr(){
        return "hello";
    }

    @PostMapping("/common")
    public String common(){
        return "common";
    }
}
